#include <unordered_map>
#include <string>
#include <iostream>

void test_unordered_map0(){
	std::unordered_map<std::string,double,std::hash<std::string> > carprice;
	std::pair<std::string,double> CLK350("Mercedes Benz CLK350", 41001.3);
	//std::unordered_map<std::string,double> jeep = {{std::string("Jeep Grand Cherokee"), 42038.5}, {"Jeep Cherokee", 30099.7}};  //not support yet
	carprice.insert(std::make_pair<std::string,double>(std::string("volvo XC60"), 43000.1));
	carprice.insert(CLK350);
	//carprice.insert(jeep.begin(),jeep.end());
	//carprice.insert({{"Toyota Highlander",35008.3},{"Toyota Ravi","25876.4"}}); //not support yet

	std::cout << "The unordered map container contains: " << std::endl;
	for (auto x : carprice) {
		std::cout << x.first << " : " << x.second <<std::endl;
	}

}